public class DepthFirstTraversalSearch extends Algorithm
Graph searching for bipartite subgraphs by performing a
depth first search on each node.args, counter, listener, PROP_PROGRESS| Constructor and Description |
|---|
DepthFirstTraversalSearch(ArgumentsBundle bundle)
Public constructor for initializing the DepthFirstTraversalSearch with
default conditions.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<Graph> |
process(Graph graph)
Processes data.
|
private Graph |
searchNode(Graph graph,
Graph subGraph,
Node node,
java.util.List<Node> visited)
Helper method to search for the SubGraphs.
|
addPropertyChangeListener, cull, removePropertyChangeListener, setProgresspublic DepthFirstTraversalSearch(ArgumentsBundle bundle)
bundle - the ArgumentsBundle containing the instantiation arguments.public java.util.ArrayList<Graph> process(Graph graph)
graph - the Graph object to search through.private Graph searchNode(Graph graph, Graph subGraph, Node node, java.util.List<Node> visited)
graph - the Graph object to search through.subGraph - the Graph object indicating the subgraph to store found
nodes and edges in. (Used due to the recursive nature of the algorithm.)node - the current node to search.visited - the List containing the visited nodes.